package selenium.pages;

import org.openqa.selenium.By;

import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;

public class InternalMainPage extends AnyPage {

    public InternalMainPage(PageManager pages) {
        super(pages);
    }

    public InternalMainPage ensurePageLoaded() {
        super.ensurePageLoaded();
        wait.until(presenceOfElementLocated(By.xpath("//img[@title='Add movie']")));
        return this;
    }

}
